/*******************************************************************************
 * Copyright 2011 Alexandre Zglav and Morphiastic
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.morphiastic.tests.entities.shape;

import com.google.code.morphia.annotations.Entity;
import com.morphiastic.annotations.ElastiFieldEmbedded;
import com.morphiastic.annotations.ElastiMorphed;

@Entity("shape")
@ElastiMorphed(typeName="square")
public class Square extends Rectangle{

	@ElastiFieldEmbedded
	private Embedded1 squareEmbedded1Prop;
	
	@ElastiFieldEmbedded
	private Embedded2 squareEmbedded2Prop;
	
	@ElastiFieldEmbedded(circularRefMaxDepth=5)
	private EmbeddedCircular1 squareEmbeddedCircular;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	public Square() {
		super();
	}
	
	public Square(Embedded1 squareEmbedded1Prop, Embedded2 squareEmbedded2Prop, EmbeddedCircular1 squareEmbeddedCircular) {
		super();
		this.squareEmbedded1Prop = squareEmbedded1Prop;
		this.squareEmbedded2Prop = squareEmbedded2Prop;
	}
	/**
	 * @return the squareEmbedded1Prop
	 */
	public Embedded1 getSquareEmbedded1Prop() {
		return squareEmbedded1Prop;
	}
	/**
	 * @param squareEmbedded1Prop the squareEmbedded1Prop to set
	 */
	public void setSquareEmbedded1Prop(Embedded1 squareEmbedded1Prop) {
		this.squareEmbedded1Prop = squareEmbedded1Prop;
	}
	/**
	 * @return the squareEmbedded2Prop
	 */
	public Embedded2 getSquareEmbedded2Prop() {
		return squareEmbedded2Prop;
	}
	/**
	 * @param squareEmbedded2Prop the squareEmbedded2Prop to set
	 */
	public void setSquareEmbedded2Prop(Embedded2 squareEmbedded2Prop) {
		this.squareEmbedded2Prop = squareEmbedded2Prop;
	}

	/**
	 * @return the squareEmbeddedCircular
	 */
	public EmbeddedCircular1 getSquareEmbeddedCircular() {
		return squareEmbeddedCircular;
	}

	/**
	 * @param squareEmbeddedCircular the squareEmbeddedCircular to set
	 */
	public void setSquareEmbeddedCircular(EmbeddedCircular1 squareEmbeddedCircular) {
		this.squareEmbeddedCircular = squareEmbeddedCircular;
	}
	
	
	
	
	
}
